package com.demo.date.controller;

import com.demo.date.dto.StudentDTO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;


@RestController
public class TestController {

    @RequestMapping("/test")
    public StudentDTO testDesensitization(){
        StudentDTO s1 = StudentDTO.builder().name("李四").studentNum("99").
                date(new Date()).build();
        return s1;
    }
}
